package com.kb.thread;

import java.util.List;

import org.apache.log4j.Logger;

public abstract class BaseThread {
	protected static Logger logger = Logger.getLogger(BaseThread.class.getName());

	protected int sizeOfThreadPool;// 线程池的大小
	private List<Integer> carIDs;

	public List<Integer> getCarIDs() {
		return carIDs;
	}

	public void setCarIDs(List<Integer> carIDs) {
		this.carIDs = carIDs;
	}

	public abstract void start();

	public int getSizeOfThreadPool() {
		return sizeOfThreadPool;
	}

	public void setSizeOfThreadPool(int sizeOfThreadPool) {
		this.sizeOfThreadPool = sizeOfThreadPool;
	}

	public BaseThread(int sizeOfThreadPool, List<Integer> carIDs) {
		super();
		this.sizeOfThreadPool = sizeOfThreadPool;
		this.carIDs = carIDs;
	}
	public BaseThread(int sizeOfThreadPool){
		this.sizeOfThreadPool = sizeOfThreadPool;
	}

}
